/* 挑战详情页通用样式 */
.challenge-page {
  max-width: 1200px;
  margin: 20px auto;
  padding: 20px;
  position: relative;
  z-index: 1;
}

/* 面包屑导航 */
.breadcrumb {
  margin-bottom: 20px;
  font-size: 14px;
}

.breadcrumb a {
  color: #666;
  text-decoration: none;
  margin: 0 5px;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* 挑战概览 */
.challenge-overview {
  display: flex;
  margin-bottom: 30px;
  background-color: #f9f9f9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.challenge-overview-left {
  width: 40%;
}

.challenge-cover-container {
  position: relative;
  height: 100%;
  min-height: 200px;
}

.green-gradient {
  background: linear-gradient(135deg, #43a047 0%, #1de9b6 100%);
}

.blue-gradient {
  background: linear-gradient(135deg, #1976d2 0%, #64b5f6 100%);
}

.purple-gradient {
  background: linear-gradient(135deg, #6a1b9a 0%, #ce93d8 100%);
}

.orange-gradient {
  background: linear-gradient(135deg, #e65100 0%, #ffb74d 100%);
}

.status-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: white;
}

.status-ongoing {
  background-color: #4CAF50;
}

.status-completed {
  background-color: #2196F3;
}

.status-upcoming {
  background-color: #FF9800;
}

.status-expired {
  background-color: #9E9E9E;
}

.challenge-overview-right {
  width: 60%;
  padding: 30px;
}

.challenge-title {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 28px;
  color: #333;
}

/* 信息网格 */
.challenge-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin: 20px 0;
}

.info-item {
  display: flex;
  align-items: center;
}

.info-label {
  font-weight: 600;
  color: #555;
  min-width: 90px;
}

.info-value {
  color: #333;
}

.status-0 {
  color: #ff9800; /* 即将开始 - 橙色 */
}

.status-1 {
  color: #4CAF50; /* 进行中 - 绿色 */
}

.status-2 {
  color: #2196F3; /* 已完成 - 蓝色 */
}

.status-3 {
  color: #9e9e9e; /* 已过期 - 灰色 */
}

.section-title {
  font-size: 16px;
  margin-bottom: 10px;
  color: #555;
}

/* 描述框 */
.challenge-description-box {
  background-color: #f5f5f5;
  border-radius: 8px;
  padding: 15px;
  margin: 20px 0;
}

.description-text {
  line-height: 1.5;
  color: #333;
}

/* 进度条 */
.challenge-progress {
  margin: 15px 0;
}

.progress-container {
  width: 100%;
  height: 8px;
  background-color: #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.progress-bar {
  height: 100%;
  background-color: #4CAF50;
  border-radius: 4px;
  position: absolute;
  left: 0;
  top: 0;
  transition: width 0.3s ease;
}

.progress-text {
  color: #666;
  font-size: 14px;
  margin-top: 8px;
}

/* 奖励和参与者 */
.challenge-reward, .challenge-participants {
  margin: 20px 0;
  display: flex;
  align-items: center;
}

.reward-badge {
  font-size: 24px;
  margin-right: 10px;
}

.avatar-group {
  display: flex;
  margin-right: 10px;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #e0e0e0;
  margin-right: -8px;
  border: 2px solid white;
}

/* 按钮 */
.challenge-actions {
  margin-top: 30px;
}

.btn {
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  margin-right: 10px;
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: #4CAF50;
  color: white;
}

.btn-primary:hover {
  background-color: #388E3C;
}

.btn-outline {
  background-color: transparent;
  color: #4CAF50;
  border: 1px solid #4CAF50;
}

.btn-outline:hover {
  background-color: rgba(76, 175, 80, 0.1);
}

/* 内容区布局 */
.challenge-content {
  display: flex;
  margin-bottom: 30px;
}

.challenge-content-main {
  width: 70%;
  padding-right: 20px;
}

.challenge-sidebar {
  width: 30%;
}

/* 卡片通用样式 */
.card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-bottom: 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .challenge-overview {
    flex-direction: column;
  }
  
  .challenge-overview-left, 
  .challenge-overview-right {
    width: 100%;
  }
  
  .challenge-content {
    flex-direction: column;
  }
  
  .challenge-content-main,
  .challenge-sidebar {
    width: 100%;
    padding-right: 0;
  }
  
  .challenge-content-main {
    margin-bottom: 20px;
  }
  
  .challenge-info-grid {
    grid-template-columns: 1fr;
  }
}

/* 加载和错误状态 */
.loading, .error {
  padding: 40px;
  text-align: center;
  font-size: 18px;
  color: #666;
}

.error {
  color: #f44336;
}

.challenge-community {
  margin-top: 30px;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .challenge-overview {
    flex-direction: column;
  }
  
  .challenge-details {
    flex-direction: column;
  }
  
  .challenge-details-main,
  .challenge-details-sidebar {
    width: 100%;
    padding-right: 0;
  }
  
  .challenge-details-main {
    margin-bottom: 20px;
  }
} 